package com.zlp.mall.search.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 前台商品-spu
 * </p>
 *
 * @author ZouLiPing
 * @since 2022-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("item_spu")
@ApiModel(value="Spu对象", description="前台商品-spu")
public class Spu implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品类型：51121001-实物商品（自营），51121002-第三方卡券，51121003-服务合同，51121004-实物商品（第三方）")
    private String itemType;

    @ApiModelProperty(value = "客户端ID")
    private Integer clientId;

    @ApiModelProperty(value = "商品库的spu的业务id")
    private String spuBusId;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品的价格（单位：分）")
    private Integer price;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "上架时间")
    private Date upTime;

    @ApiModelProperty(value = "权重值")
    private Integer score;

    @ApiModelProperty(value = "浏览量")
    private Integer views;


    @ApiModelProperty(value = "状态:60291001-草稿， 60291002-待上架， 60291003-上架中， 60291004-已下架")
    private Integer status;


}
